package dao.impl;

import dao.LiveCityDao;
import domain.LiveCity;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by chen on 2015/7/10.
 *
 * @author chen <chen@youjianghr.com>
 */
@Repository
public class LiveCityDaoImpl extends BaseGenericDao<LiveCity, Integer> implements LiveCityDao {

    @Override
    public List<LiveCity> getAllCityWithPriorityDesc() {
        Map<String, Object> params = newMapBuilder().build();
        List<LiveCity> mthResult = queryList("get-with-priority-desc", params);
        return mthResult;
    }
}
